// 自动获取当前文件名 filename
var filename = __dirname.split('/');
var html = filename[filename.length-1] + '.html';
var js = filename[filename.length-1];

// html 页面参数
module.exports = {
  title: 'demo',
  filename: html,
  template: 'template/index.ejs',
  hash : true,
  chunks: ['vendor', js],         
  minify: {
    removeComments:true,
    collapseWhitespace:false
  },
  cache: true
};
